package vip.liux.front.domain.models.chat;

import org.springframework.data.repository.ListCrudRepository;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.List;

@NoRepositoryBean
public interface IChatConversationRepository extends ListCrudRepository<ChatConversation, Long> {

    ConversationPair findPair(Long senderId, Long targetUserId);

    List<ConversationWithTargetUser> getListByUserId(Long userId, String filter);

    int getTotalUnreadMessageCount(Long userId);
}
